<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/mytag.jspf"%>

<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<title></title>
<script type="text/javascript">
$(function(){
	$("#form").validate({
		rules : {
			"name" : {
				required : true
			}
		},
		messages : {
			"name" : {
				required : "角色名称不能为空",
			}
		}
	});
	$("#submitBtn").on("click",function(){
		$("#form").submit();
	});
});
</script>
</head>
<body>
	<ol class="am-breadcrumb am-breadcrumb-slash am-padding" style="margin-bottom: 0px;">
		<li><a href="management/index">首页</a></li>
		<li><a href="management/role/index">角色管理</a></li>
		<li class="am-active">修改</li>
	</ol>
	<div class="am-g">
		<div class="am-u-md-12">
				<div class="am-tabs am-margin">
					<ul class="am-tabs-nav am-nav am-nav-tabs">
						<li class="am-active"><a href="javascript:void(0)">基本信息</a></li>
					</ul>
					<div class="am-tabs-bd">
						<div class="am-tab-panel am-active">
							<div class="am-g">
								<div class="am-u-md-12">
									<form class="am-form am-form-horizontal am-block" id="form" name="form"  method="post" action="management/role/update">
									<input type="hidden" name="compId" id="compId" value="${t.compId }" class="am-form-field am-input-sm"><!-- shopId -->
									<input type="hidden" name="roleId" id="roleId" value="${t.roleId }" class="am-form-field am-input-sm"><!-- shopId -->
									<div class="am-form-group">
										<label class="am-u-sm-2 am-form-label">角色名称</label>
										<div class="am-u-md-4 am-u-end">
											<input type="text" id="name" name="name" value="${t.name }"  maxlength="50" class="am-form-field am-input-sm">
										</div>
									</div>
									<div class="am-form-group">
										<label class="am-u-sm-2 am-form-label">角色别名</label>
										<div class="am-u-md-4 am-u-end">
											<input type="text" id="alias" name="alias" value="${t.alias }" maxlength="50" class="am-form-field am-input-sm">
										</div>
									</div>
									</form>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="am-margin">
					<button class="am-btn am-btn-primary am-btn-xs" type="button" id="submitBtn"><span class="am-icon-check"></span> 保存</button>
					<a href="javascript:;" onClick="javascript:history.back(-1);" class="am-btn am-btn-primary am-btn-xs"><span class="am-icon-times"></span> 取消</a>
				</div>
		</div>
	</div>
</body>
</html>
